//
//  bulletObject.h
//  TowerDefence
//
//  Created by K3 on 5/30/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "GameObject.h"
#import "cocos2d.h"
#import "Enemy.h"

@interface BulletObject : GameObject {
    float velocity;
    int damage;
    
    GameObject *tower;
    CGPoint targetPoint;
}

@property (nonatomic) float velocity;
@property (nonatomic) int damage;
@property (retain, nonatomic) GameObject *tower;;

-(id)initBulletObjectWith:(GameLayer *)_gameLayer tower:(GameObject *)_tower;
-(NSMutableArray*)loadAnimationWithNumberOfFrames:(int) numberOfFrames withFrameName:(NSString*)frame;
-(void)loadBulletComponent;
-(void)moveAnimationWithFrameName:(NSString *)_frameName frameCount:(int)_frameCount;
-(void)fireTarget:(CGPoint)_targetPoint;
-(void)hitTargetCallback;
-(void)moveToTarget;
-(void)destroySelf;

@end
